ImagePicker

data class ImagePicker(val sourceType: UIImagePickerControllerSourceType = UIImagePickerControllerSourceType.UIImagePickerControllerSourceTypePhotoLibrary, val mediaType: Set<NavigationSpec.ImagePicker.MediaType> = setOf(MediaType.IMAGE), val navigationDelegate: UINavigationControllerDelegateProtocol, val imagePickerDelegate: UIImagePickerControllerDelegateProtocol, val animated: Boolean = false, val completion: () -> Unit? = null) : NavigationSpec

Presents a UIImagePickerController to the parent

Parameters

sourceType

the UIImagePickerControllerSourceType to pick

mediaType

Set of allowed MediaTypes to pick

navigationDelegate

The UINavigationControllerDelegateProtocol added to the UIImagePickerController

imagePickerDelegate

The UIImagePickerControllerDelegateProtocol added to the UIImagePickerController

animated

Specifies whether transition should be animated

completion

Optional function called when presentation is completed

Constructors

Link copied to clipboard
constructor(sourceType: UIImagePickerControllerSourceType = UIImagePickerControllerSourceType.UIImagePickerControllerSourceTypePhotoLibrary, mediaType: Set<NavigationSpec.ImagePicker.MediaType> = setOf(MediaType.IMAGE), navigationDelegate: UINavigationControllerDelegateProtocol, imagePickerDelegate: UIImagePickerControllerDelegateProtocol, animated: Boolean = false, completion: () -> Unit? = null)

Types

Link copied to clipboard

The type of media that can be picked

Properties

Link copied to clipboard
Link copied to clipboard
val completion: () -> Unit?
Link copied to clipboard
val imagePickerDelegate: UIImagePickerControllerDelegateProtocol
Link copied to clipboard
Link copied to clipboard
val navigationDelegate: UINavigationControllerDelegateProtocol
Link copied to clipboard
val sourceType: UIImagePickerControllerSourceType